<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>
<a href="?action=other&do=link_list">链接列表</a>
&raquo;&nbsp;<!--{if $mode=='insert'}-->添加链接<!--{else}-->编辑链接<!--{/if}-->

</div>
<div class='item'>
	<table width="100%">
	<form action="?action=other&do=link_<!--{$mode}-->" method="post" name="link_info" enctype="multipart/form-data">
		<tr>
		<td align="right" width="80" height="30">连接名称：</td>
		<td><input type="text" name="link_name" class="input" size="60" value="<!--{$link.name|escape:html}-->" />		</td>
		</tr>

		<tr>
		<td align="right" width="80" height="30">连接说明：</td>
		<td><input type="text" name="link_text" class="input" size="60" value="<!--{$link.text|escape:html}-->" />		</td>
		</tr>

		<tr>
		<td align="right" width="80" height="30">连接地址：</td>
		<td><input type="text" name="link_url" class="input" size="60" value="<!--{$link.url|escape:html}-->" />		</td>
		</tr>
		<tr>
		<td height="30"  align="right">连接图标：</td>
		<td><input type="file" name="link_logo" size="40" value="<!--{$link.logo}-->" class="input"/>
		<!--{if $link.logo}-->
		<a href="uploads/<!--{$link.logo}-->" target="_blank"><img src="uploads/<!--{$link.logo}-->" alt="" align="absmiddle" style="width:88px;height:31px;border:none"/></a>
		<label><input type="checkbox" name="link_logo_delete" value="<!--{$link.logo}-->" /> 删除</label>
		<input type="hidden" name="link_logo_old" value="<!--{$link.logo}-->"/>
		<!--{/if}-->
		</td>
		</tr>
		<tr>
		<td align="right" height="30">连接排序：</td>
		<td><input type="text" name="link_sort" class="input" size="5" value="<!--{$link.sort}-->" />	
		</td>
		</tr>		
		<tr>
		<td align="right" height="30">连接状态：</td>
		<td>
		<label><input type="radio" name="link_state" value="1" {if $link.state==1}checked{/if} /> 正常</label>
		<label><input type="radio" name="link_state" value="0" {if $link.state==0}checked{/if} /> 锁定</label>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30">&nbsp;</td>
		<td>
		<input type="submit" value="提交" class="button"/>
		</td>
		</tr>
		<input type="hidden" name="link_id" value="<!--{$link.id}-->"/>
	</form>
	</table>
</div>
</td>
</tr>
</table>
</body>
</html>